package com.gsh.study.service.impl;

import com.gsh.study.dao.WorkDao;
import com.gsh.study.entity.Work;
import com.gsh.study.service.intf.WorkService;
import lombok.Data;

import java.util.List;

/**
 * @author GSh
 * @packageName:com.gsh.study.service.impl
 * @className:WorkServiceImpl
 * @description
 * @create 2021-09-29 15:27
 */
@Data
public class WorkServiceImpl implements WorkService {
    private WorkDao dao;
    @Override
    public int add(Work work) {
        return dao.add(work);
    }
    @Override
    public List<Work> selectAllWork() {
        return dao.selectAllWork();
    }
}
